const http = require('http');
http.createServer((req, res)=> {
  console.log(req.url);
  console.log(req.method);
  res.write('I am sever');
  res.end();
}).listen(3000,()=>{
  console.log('启动成功！');
})